package com.wang.interview.designmode.decorate;

/**
 * @author: wang
 * @date: 2021/7/31 11:17
 * @description:
 */
abstract class Drink {
    private String name;
    private float cost;
    private String desc;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getCost() {
        return cost;
    }

    public void setCost(float cost) {
        this.cost = cost;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    /**
     * 计算费用
     * @return
     */
    abstract float cost();

    abstract void pri();

}
